package com.example.controller;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * @author 何星霖
 * @date 2018/10/15 16:26
 */
@RestController
@RequestMapping(value = "/user")
@Api(description="Swagger接口")
public class HelloController {
    @ApiOperation(value = "Swagger接口测试", notes = "Swagger接口测试")
    @RequestMapping(method = RequestMethod.GET, value = "/api/javainuse")
    public String sayHello() {
        return "Swagger Hello World";
    }
}
